const express = require('express');
const path = require('path');
const bodyParser = require('body-parser');
let app = express();
app.use(bodyParser.json());
app.get('/',(req,res)=>{
    // 加载页面
    req.sendFile(patn.join(__dirname,'./views/index.html'));
})
app.post('/postdata',(req,res)=>{
    console.log('req.body');
    res.json({inio:'成功',statusL1}
    )
})
app.listen(8989)